function iframeheight() {
	var winHeight = 0;
	var minheight=500;//设置最小高度
	var the_height=0;
	var lefttree=document.getElementById("leftframe");
	var rightmain=document.getElementById("mainaction");
	if (window.innerHeight)
		winHeight = window.innerHeight;
	else if ((document.documentElement) && (document.documentElement.clientHeight))
		winHeight = document.documentElement.clientHeight;
	if (winHeight-71<minheight){
		the_height=minheight;
	}
	else {
		the_height=(winHeight-71);
	}
	lefttree.height=rightmain.height=the_height;
      if(navigator.appName == 'Microsoft Internet Explorer')
      {//if IE         
    	  if(document.frames("leftframe").document.getElementById("treeDiv_Cat")){
    		 document.frames("leftframe").document.getElementById("treeDiv_Cat").style.height=the_height-30+"px";
    	  }
    	  if(document.frames("leftframe").document.getElementById("treeDiv_Content")){
     		 document.frames("leftframe").document.getElementById("treeDiv_Content").style.height=the_height-30+"px";
     	  }
    	  if(document.frames("leftframe").document.getElementById("leftmenutree2")){
     		 document.frames("leftframe").document.getElementById("leftmenutree2").height=the_height-30;
     	  }
    	  if(document.frames("leftframe").document.getElementById("sitemanager")){
    		  document.frames("leftframe").document.getElementById("sitemanager").style.height=the_height-30+"px"; 
    	  }
    	  if(document.frames("leftframe").document.getElementById("leftmenu")){
    		  document.frames("leftframe").document.getElementById("leftmenu").style.height=the_height+"px"; 
    	  }
    	  if (document.frames("mainaction").document.getElementById("wrapper")){
    		  document.frames("mainaction").document.getElementById("wrapper").style.height=the_height-22+"px";
    	  }
      }
      else
      {//if FF
    	  if(document.getElementById("leftframe").contentDocument.getElementById("treeDiv_Cat")){
     		 document.getElementById("leftframe").contentDocument.getElementById("treeDiv_Cat").style.height=the_height-33+"px";
     	  }
    	  if(document.getElementById("leftframe").contentDocument.getElementById("treeDiv_Content")){
      		 document.getElementById("leftframe").contentDocument.getElementById("treeDiv_Content").style.height=the_height-33+"px";
      	  }
    	  if(document.getElementById("leftframe").contentDocument.getElementById("leftmenutree2")){
      		 document.getElementById("leftframe").contentDocument.getElementById("leftmenutree2").height=the_height-33;
      	  }
    	  if (document.getElementById("leftframe").contentDocument.getElementById("sitemanager")){
    		  document.getElementById("leftframe").contentDocument.getElementById("sitemanager").style.height=the_height-34+"px";
    	  }
    	  if (document.getElementById("leftframe").contentDocument.getElementById("leftmenu")){
    		  document.getElementById("leftframe").contentDocument.getElementById("leftmenu").style.height=the_height+"px";
    	  }
    	  if (document.getElementById("mainaction").contentDocument.getElementById("wrapper")){
    		  document.getElementById("mainaction").contentDocument.getElementById("wrapper").style.height=the_height-22+"px";
    	  }
      }
      
 }
$(window).resize(iframeheight);
